Password correct? then redirect [migrated]

Posted by RevCity on Pro Webmasters See other posts from Pro Webmasters or by RevCity
Published on 2012-10-08T14:51:52Z Indexed on 2012/10/08 15:53 UTC
Read the original article Hit count: 164

Filed under:

So I have this code and I need it to only redirect when the correct password is added. Only problem is that I dont know what to add that will make it only redirect if the password is "hello" I understand that using "view-source" would reveal the password, I don't mind that, its the way I want it. I basically just need to know what to add and where to add it.

Sooo: Redirects if "hello" is typed into password field. Does nothing if anything else is put into the password field.

<div class="wrapper">

    <form class="form1" action="http://google.com">

        <div class="formtitle">Enter the password to proceed</div>

        <div class="input nobottomborder">
            <div class="inputtext">Password: </div>
            <div class="inputcontent">

                <input type="password" />
                <br/>

            </div>
        </div>

        <div class="buttons">

            <input class="orangebutton" type="submit" value="Login" />


        </div>

</div>  

I hope this was clear and could be understood.

© Pro Webmasters or respective owner

Related posts about html